<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

<script>

// 赋值运算符
// =  +=  -=  *=  /=  %=
var a = 3;// 将3赋值给a
a += 2;// a = a + 2
console.log( a );// 5

var b = 2;
b *= 3;// b = b * 3
console.log( b );// 6

</script>
</body>
</html>